package vn.com.fsoft.oopai.fsi.rule;

import vn.com.fsoft.oopai.fsi.common.Common;
import vn.com.fsoft.oopai.fsi.game.GameState;

/**
 * Class FirstLevelRules.
 * The information about the first level rules.
 * @author OOPAI Group
 *
 */
public class FirstLevelRules implements Rules {

	@Override
	public boolean checkWin(GameState gameState) {
		if(gameState.getTotalViableSpaceClicked() >= Common.NUMBER_CLICK_TO_WIN)
			return true;
		return false;
	}

	@Override
	public boolean isViableSpaceMultipleClickable() {
		return true;
	}
	
	@Override
	public boolean isNumClickAbleToAdd(GameState gameState, int x, int y) {
		return true;
	}
	
	@Override
	public boolean isAbleToFlag() {
		return false;
	}
	
	@Override
	public boolean isAbleToMultipleFlag() {
		return false;
	}
	@Override
	public boolean isNumFlagAbleToAdd(GameState gameState, int x, int y) {
		return false;
	}
	
	@Override
	public boolean isFlagRemovable() {
		return false;
	}
}
